package com.dahaonetwork.smartfactory.authserver.controller;

import java.security.Principal;

import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/users")
public class ResourceController {
	 
     @GetMapping("/me")
     public Principal me(Principal principal) {
    	 System.out.println("123123");
         return principal;
     }

}
